import request from '@/plugins/request';
export default {
    /*.then(res => {
        // 返回数据
    })
        .catch(err => {
            // 异常情况
        })*/

///vacation/findByPage
// 按条件查询

    findByPage(data) {
        return request({
            url: '/api/vacation/findByPage',
            method: 'post',
            data
        });
    },
    //vacation/addVacation
    // 新增
    addVacation(data) {
        return request({
            url: '/api/vacation/addVacation',
            method: 'post',
            data
        })
    },
    //administrative/insertCarOrZang
    // 用车和用章新增
    insertCarOrZang(data) {
        return request({
            url: '/api/administrative/insertCarOrZang',
            method: 'post',
            data
        })
    },

    ///administrative/updateAdministrative
    // 用户申请修改

    updateReport(data) {
        return request({
            url: '/api/administrative/updateAdministrative',
            method: 'post',
            data
        })
    },
    //vacation/deleteById
    // 删除

    deleteById(data) {
        return request({
            url: '/api/vacation/deleteById',
            method: 'post',
            data
        })
    },
    ///vacation/findById
    // id查询详情
    // id获取详情
    getInfoById(data) {
        return request({
            url: '/api/vacation/findById',
            method: 'post',
            data
        })
    },

    //vacationAudit/insertAuditInfo
    // 出勤休假审核
    insertAuditInfo(data) {
        return request({
            url: '/api/vacationAudit/insertAuditInfo',
            method: 'post',
            data
        })
    },
    ///vacationAudit/insertAuditBusiness
    // 出差审核审核
    insertAuditBusiness(data) {
        return request({
            url: '/api/vacationAudit/insertAuditBusiness',
            method: 'post',
            data
        })
    },
}
